#ifndef EG_H
#define EG_H

#include "object.h"
//#include "snake.h"

class Snake;

class Eg : public Object
{
    int run;
    QRectF boundingRect() const;
    void advance(int step);
    QPainterPath shape() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);
    Eg * mama;
    void advanceNoMama();
    void advanceMama();

public:
    void set_leader (Eg * m);
    void rand_position ();
    Eg(int Hrun);
};

#endif // EG_H
